Xbasic
ON_APPLICATION_EXIT Function
Syntax
C on_application_exit(C code )
Arguments
- code
A character string that can be interpreted as Xbasic or Xdialog commands.
Description
ON_APPLICATION_EXIT() executes the Code_String when Alpha Anywhere closes.
Example
Both the following examples display the following dialog box.
The first example defines Xdialog code that is executed.
dim code as C
Code =
Ui_msg_box("Goodbye","It was nice seeing you")
%code%
on_application_exit(code)The second example defines Xbasic code that is executed.
dim code as C
code = "ui_msg_box(" + quote("Goodbye") + ", " + quote("It was nice seeing you") + ")"
on_application_exit(code)Limitations
Desktop applications only.
See Also
